const pool = require("../config/mysqlPool")
const service = {
    // 查找about 表数据
    findInfo(aid, callback) {
        pool.query(`select * from ht_about where aid=? `, [aid], (err, results) => {
            err ? callback(false) : callback(results)
        })
    },
    // 查找大事件的数据
    findEvent(callback) {
        pool.query(`select * from ht_event`, (err, results) => {
            err ? callback(false) : callback(results)
        })
    },
    // 查找旗下成员数据
    findMember(callback) {
        pool.query(`select * from ht_member`, (err, results) => {
            err ? callback(false) : callback(results)
        })
    },
}

module.exports = service